package com.bicon.botu.core.base.common.utils;

import com.bicon.botu.core.base.common.entity.LogBaseEntity;

/**
 * Created by L on 2017/2/16.
 */
public class LogRecordUtil {

    /**
     * 获取日志对象
     * @param appName   服务名
     * @param o 要记录的日志对象
     * @return  基础日志
     */
    public static LogBaseEntity getLogBaseEntity(String appName, Object o){
        LogBaseEntity entity = new LogBaseEntity();
        entity.setApplicationName(appName);
        entity.setData(o);
        return  entity;
    }

}
